<?php
require_once "loginView.php";
session_start();
$instance = new LogginView();
$loggon = $instance -> DologinBox();
$logoff= $instance -> DoLogoutBox();
$title = "login view";
$body = $loggon. " ". $logoff;
	if ($instance -> TriedToLogOut())
	{
		$body.= "You loged out from user "
		$body .= $instance -> GetUserName();
	}
	if ($instance -> TriedToLogIn()) 
	{
		$body .="The user has pressed the login button whith the username ";
		$body .= $instance -> GetUserName() ." and password " . $instance->GetPassword();
	}
	else
	{
		$body .= "Not logged in";
	}

?>
<html>
  <head>
    <title><?php echo $title;?></title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  </head>
  <body>
  <?php
    echo $body;
  ?>
  </body>
</head> 